package xkp.lesson.entity;

import lombok.*;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@ToString
@Accessors(chain = true)
public class Person {
    private String name;
    private int age;
    private double money;

    public Person() {
        System.out.println("Person()");
    }

    public void init(){
        System.out.println("初始化动作.....");
    }

    public void destory(){
        System.out.println("释放资源.....");
    }
}